package com.aorise.mapper.assess;

import com.aorise.model.assess.AssessModel;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
* @Author:cat
* @Description 考核mybatis接口类
* @Date:Created in 2019-06-20
* @Modified By:
*/
@Mapper
@Component(value = "assessMapper")
public interface AssessMapper {

    /**
     * @Author:cat
     * @Description 查询考核信息总条数
     * @params: map 查询条件Map
     * @Date:2019-06-20
     * @Return: Long 数据总条数
     * @Modified By:
     */
    Long getAllAssessListTotalByPage(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 分页查询考核信息
     * @params: map 查询条件Map
     * @Date:2019-06-20
     * @Return: List<AssessModel> 考核信息集合
     * @Modified By:
     */
    List<AssessModel> getAllAssessListByPage(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 按日期查询考核信息
     * @params: map 查询条件Map
     * @Date:2019-06-20
     * @Return: AssessModel 考核信息
     * @Modified By:
     */
    AssessModel getAssessByDate(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 新增考核信息
     * @params: assessModel 考核信息
     * @Date:2019-06-20
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer addAssess(AssessModel assessModel) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 根据条件查询考核信息(导出)
     * @params: map 查询条件Map
     * @Date:2019-06-20
     * @Return: List<AssessModel> 考核信息集合
     * @Modified By:
     */
    List<AssessModel> exportAssess(Map<String, Object> map) throws DataAccessException;

}